package com.b2s.scrumblr.kb.model;

import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by xbzheng on 2016/8/25.
 */
@Alias("Role")
public class Role implements Serializable{
    private static final long serialVersionUID = 123568746465464981l;
    private String id;
    private String roleName;
    private String descr;

    private String cacheKey = "roleName";

    private List<Resource> resources = new ArrayList<Resource>();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }

    public List<Resource> getResources() {
        return resources;
    }

    public void setResources(List<Resource> resources) {
        this.resources = resources;
    }

    public String getCacheKey() {
        return cacheKey;
    }
}
